//
//  LCHomeEssayVideoTableViewCell.m
//  JKFuYinProject
//
//  Created by admin on 2017/12/25.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LCHomeEssayVideoTableViewCell.h"

@interface LCHomeEssayVideoTableViewCell ()

@end

@implementation LCHomeEssayVideoTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self setupUI];
}
-(void)setupUI{
    CGFloat space = 10;
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView).offset(15);
        make.left.equalTo(self.contentView).offset(space);
        make.right.equalTo(self.contentView).offset(-space);
        make.height.equalTo(self.titleLabel.mas_height);//offset(11);
    }];

    CGFloat scale = 0.74/**9/16*/;
    [self.thumbpicImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.titleLabel.mas_bottom).offset(8);
        make.left.equalTo(self.contentView).offset(space);
        make.right.equalTo(self.contentView).offset(-space);
        make.height.equalTo(@((ScreenWidth-space*2)*scale));
    }];
    [self.vImgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self.thumbpicImageView);
        make.width.offset(50);
        make.height.offset(50);
    }];
    
    [self.adddateLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.thumbpicImageView.mas_bottom).offset(8);
        make.left.equalTo(self.contentView).offset(space);
        make.right.equalTo(self.contentView).offset(-space);
        make.height.equalTo(self.adddateLabel.mas_height);
    }];
    
}

@end
